#!/bin/sh

BASE=`basename "$1" .sxd`
SXD=$BASE.sxd

sed 's/\\IeC {\\CYRA }/А/g
s/\\IeC {\\cyra }/а/g
s/\\IeC {\\CYRB }/Б/g
s/\\IeC {\\cyrb }/б/g
s/\\IeC {\\CYRV }/В/g
s/\\IeC {\\cyrv }/в/g
s/\\IeC {\\CYRG }/Г/g
s/\\IeC {\\cyrg }/г/g
s/\\IeC {\\CYRD }/Д/g
s/\\IeC {\\cyrd }/д/g
s/\\IeC {\\CYRE }/Е/g
s/\\IeC {\\cyre }/е/g
s/\\IeC {\\CYRYO }/Ё/g
s/\\IeC {\\cyryo }/ё/g
s/\\IeC {\\CYRZH }/Ж/g
s/\\IeC {\\cyrzh }/ж/g
s/\\IeC {\\CYRZ }/З/g
s/\\IeC {\\cyrz }/з/g
s/\\IeC {\\CYRI }/И/g
s/\\IeC {\\cyri }/и/g
s/\\IeC {\\CYRISHRT }/Й/g
s/\\IeC {\\cyrishrt }/й/g
s/\\IeC {\\CYRK }/К/g
s/\\IeC {\\cyrk }/к/g
s/\\IeC {\\CYRL }/Л/g
s/\\IeC {\\cyrl }/л/g
s/\\IeC {\\CYRM }/М/g
s/\\IeC {\\cyrm }/м/g
s/\\IeC {\\CYRN }/Н/g
s/\\IeC {\\cyrn }/н/g
s/\\IeC {\\CYRO }/О/g
s/\\IeC {\\cyro }/о/g
s/\\IeC {\\CYRP }/П/g
s/\\IeC {\\cyrp }/п/g
s/\\IeC {\\CYRR }/Р/g
s/\\IeC {\\cyrr }/р/g
s/\\IeC {\\CYRS }/С/g
s/\\IeC {\\cyrs }/с/g
s/\\IeC {\\CYRT }/Т/g
s/\\IeC {\\cyrt }/т/g
s/\\IeC {\\CYRU }/У/g
s/\\IeC {\\cyru }/у/g
s/\\IeC {\\CYRF }/Ф/g
s/\\IeC {\\cyrf }/ф/g
s/\\IeC {\\CYRH }/Х/g
s/\\IeC {\\cyrh }/х/g
s/\\IeC {\\CYRC }/Ц/g
s/\\IeC {\\cyrc }/ц/g
s/\\IeC {\\CYRCH }/Ч/g
s/\\IeC {\\cyrch }/ч/g
s/\\IeC {\\CYRSH }/Ш/g
s/\\IeC {\\cyrsh }/ш/g
s/\\IeC {\\CYRSHCH }/Щ/g
s/\\IeC {\\cyrshch }/щ/g
s/\\IeC {\\CYRHRDSN }/Ъ/g
s/\\IeC {\\cyrhrdsn }/ъ/g
s/\\IeC {\\CYRERY }/Ы/g
s/\\IeC {\\cyrery }/ы/g
s/\\IeC {\\CYRSFTSN }/Ь/g
s/\\IeC {\\cyrsftsn }/ь/g
s/\\IeC {\\CYREREV }/Э/g
s/\\IeC {\\cyrerev }/э/g
s/\\IeC {\\CYRYU }/Ю/g
s/\\IeC {\\cyryu }/ю/g
s/\\IeC {\\CYRYA }/Я/g
s/\\IeC {\\cyrya }/я/g
' $SXD
